
from bs4 import BeautifulSoup
import requests

# url = 'https://autozentao.thundersoft.com/biz/execution-task-1373.html'
url = 'https://autozentao.thundersoft.com/biz/execution-task.html'

# # 输入网址的用户名和密码
# username = 'yuntao.xu'
# password  = 'Gp1p590A'
# # 创建一个session对象
# session = requests.Session()
# # 登录的网址
# login_url = 'https://autozentao.thundersoft.com/biz/user-login.html'
# # 登录的参数
# login_data = {
#     'account': username,
#     'password': password,
#     'referer': 'https://autozentao.thundersoft.com/biz/user-login.html',
# }
# # 发送登录请求
# session.post(login_url, data=login_data)
# 获取登录后的页面
req = requests.get(url)
req.encoding = 'utf-8'

print(req.content)

soup = BeautifulSoup(req.content, 'html.parser')
result_List = []

tag_list = soup.find_all(name='td', attrs={'class': 'c-name text-left'})

for tag in tag_list:
    result_List.append(tag.attrs['title'])

print(result_List)





# url = 'https://car.yiche.com/'
#
# req = requests.get(url)
# req.encoding = 'utf-8'
#
# print(req.content)
#
# soup = BeautifulSoup(req.content, 'html.parser')
# result_List = []
#
# tag_list = soup.find_all(name='div', attrs={'class': 'item-brand'})
#
# for tag in tag_list:
#     result_List.append(tag.attrs['data-name'])
#
# print(result_List)